package Demo05.Demo08;

public class Student extends Person {
    private int snum;
 
    public void study(){
        System.out.println("我爱学习");
    }
 
 
    @Override
    public void eat() {
        System.out.println(this.getName()+"吃饭");
    }
 
    @Override
    public void sleep() {
        System.out.println(this.getName()+"睡觉");
    }
}